import 'package:flutter/material.dart';
import 'package:flutter_program/fragment_four/bean/SheBaiListBean.dart';

class FourFragmentPagerInformation extends StatefulWidget {
  List<SheBaiListBean> mDataFouDate = new List();
  var indexsss;

  FourFragmentPagerInformation(this.mDataFouDate,this.indexsss);

  @override
  _FourFragmentPagerInformationState createState() =>
      _FourFragmentPagerInformationState(this.mDataFouDate,this.indexsss);
}

class _FourFragmentPagerInformationState
    extends State<FourFragmentPagerInformation> {
  List<SheBaiListBean> mDataFouDate = new List();
  var indexssss;

  _FourFragmentPagerInformationState(this.mDataFouDate,this.indexssss);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: InkWell(
          onTap: () {
            Navigator.of(context).pop();
          }, //故障申请表
          child: Icon(
            Icons.chevron_left,
            size: 29.0,
            color: Colors.white,
          ),
        ),
        automaticallyImplyLeading: false,
        centerTitle: true,
        title: Text(
          "备件信息",
          style: TextStyle(fontSize: 16.0),
        ),
        actions: <Widget>[
          Center(
            child: Container(
              padding: new EdgeInsets.only(right: 10.0),
            ),
          ),
        ],
      ),
      backgroundColor: Color(0xFFEEEEEE),
      body: new ListView.builder(
          itemCount: 1,
          itemBuilder: (content, index) {
            return Container(
              margin: new EdgeInsets.only(top: 5.0, bottom: 5.0),
              color: Colors.white,
              child: new Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: <Widget>[
                  Container(
                    child: Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: <Widget>[
                        Column(
                          crossAxisAlignment:CrossAxisAlignment.start,
                          children: <Widget>[
                            Container(
                              height: 41.0,
                              child: Row(
                                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                children: <Widget>[
                                  Container(
                                    padding: new EdgeInsets.only(
                                        left:10.0, right: 80.0),
                                    child: Text("备件名称"),
                                  ),
                                  Text(mDataFouDate[indexssss].name),
                                ],
                              ),
                            ),
                            Container(
                              width: MediaQuery.of(context).size.width,
                              color: Colors.black26,
                              height: 1.0,
                            )
                          ],
                        ),
                        Column(
                          crossAxisAlignment:CrossAxisAlignment.start,
                          children: <Widget>[
                            Container(
                              height: 41.0,
                              child: Row(
                                children: <Widget>[
                                  Container(
                                    padding: new EdgeInsets.only(
                                        left: 10.0, right: 80.0),
                                    child: Text("备件编码"),
                                  ),
                                  Text(mDataFouDate[indexssss].number),
                                ],
                              ),
                            ),
                            Container(
                              width: MediaQuery.of(context).size.width,
                              color: Colors.black26,
                              height: 1.0,
                            )
                          ],
                        ),
                        Column(
                          crossAxisAlignment:CrossAxisAlignment.start,
                          children: <Widget>[
                            Container(
                              height: 41.0,
                              child: Row(
                                children: <Widget>[
                                  Container(
                                    padding: new EdgeInsets.only(
                                        left: 10.0, right: 80.0),
                                    child: Text("条形码"),
                                  ),
                                  Text(mDataFouDate[indexssss].code),
                                ],
                              ),
                            ),
                            Container(
                              width: MediaQuery.of(context).size.width,
                              color: Colors.black26,
                              height: 1.0,
                            )
                          ],
                        ),
                        Column(
                          crossAxisAlignment:CrossAxisAlignment.start,
                          children: <Widget>[
                            Container(
                              height: 41.0,
                              child: Row(
                                children: <Widget>[
                                  Container(
                                    padding: new EdgeInsets.only(
                                        left: 10.0, right: 80.0),
                                    child: Text("规格型号"),
                                  ),
                                  Text(mDataFouDate[indexssss].specModels),
                                ],
                              ),
                            ),
                            Container(
                              width: MediaQuery.of(context).size.width,
                              color: Colors.black26,
                              height: 1.0,
                            )
                          ],
                        ),
                        Column(
                          crossAxisAlignment:CrossAxisAlignment.start,
                          children: <Widget>[
                            Container(
                              height: 41.0,
                              child: Row(
                                children: <Widget>[
                                  Container(
                                    padding: new EdgeInsets.only(
                                        left: 10.0, right: 80.0),
                                    child: Text("类别"),
                                  ),
                                  Text(""),
                                ],
                              ),
                            ),
                            Container(
                              width: MediaQuery.of(context).size.width,
                              color: Colors.black26,
                              height: 1.0,
                            )
                          ],
                        ),
                        Column(
                          crossAxisAlignment:CrossAxisAlignment.start,
                          children: <Widget>[
                            Container(
                              height: 41.0,
                              child: Row(
                                children: <Widget>[
                                  Container(
                                    padding: new EdgeInsets.only(
                                        left: 10.0, right: 80.0),
                                    child: Text("单价"),
                                  ),
                                  Text(
                                      mDataFouDate[indexssss].unitPrice.toString()),
                                ],
                              ),
                            ),
                            Container(
                              width: MediaQuery.of(context).size.width,
                              color: Colors.black26,
                              height: 1.0,
                            )
                          ],
                        ),
                        Column(
                          crossAxisAlignment:CrossAxisAlignment.start,
                          children: <Widget>[
                            Container(
                              height: 41.0,
                              child: Row(
                                children: <Widget>[
                                  Container(
                                    padding: new EdgeInsets.only(
                                        left: 10.0, right: 80.0),
                                    child: Text("当前库存"),
                                  ),
                                  Text(mDataFouDate[indexssss]
                                      .currRepertory
                                      .toString()),
                                ],
                              ),
                            ),
                            Container(
                              width: MediaQuery.of(context).size.width,
                              color: Colors.black26,
                              height: 1.0,
                            )
                          ],
                        ),
                        Column(
                          crossAxisAlignment:CrossAxisAlignment.start,
                          children: <Widget>[
                            Container(
                              height: 41.0,
                              child: Row(
                                children: <Widget>[
                                  Container(
                                    padding: new EdgeInsets.only(
                                        left: 10.0, right: 80.0),
                                    child: Text("库存上限"),
                                  ),
                                  Text(mDataFouDate[indexssss]
                                      .repertoryMax
                                      .toString()),
                                ],
                              ),
                            ),
                            Container(
                              width: MediaQuery.of(context).size.width,
                              color: Colors.black26,
                              height: 1.0,
                            )
                          ],
                        ),
                        Column(
                          crossAxisAlignment:CrossAxisAlignment.start,
                          children: <Widget>[
                            Container(
                              height: 41.0,
                              child: Row(
                                children: <Widget>[
                                  Container(
                                    padding: new EdgeInsets.only(
                                        left: 10.0, right: 80.0),
                                    child: Text("库存下限"),
                                  ),
                                  Text(mDataFouDate[indexssss]
                                      .repertoryMin
                                      .toString()),
                                ],
                              ),
                            ),
                            Container(
                              width: MediaQuery.of(context).size.width,
                              color: Colors.black26,
                              height: 1.0,
                            )
                          ],
                        ),
                        Column(
                          crossAxisAlignment:CrossAxisAlignment.start,
                          children: <Widget>[
                            Container(
                              height: 41.0,
                              child: Row(
                                children: <Widget>[
                                  Container(
                                    padding: new EdgeInsets.only(
                                        left: 10.0, right: 80.0),
                                    child: Text("适配设备"),
                                  ),
                                  Text(""),
                                ],
                              ),
                            ),
                            Container(
                              width: MediaQuery.of(context).size.width,
                              color: Colors.black26,
                              height: 1.0,
                            )
                          ],
                        ),
                      ],
                    ),
                  ),
                ],
              ),
            );
          }),
    );
  }
}
